/**
 * 个人首页接口
 */
import request from "../request.js";
import url from "../../url/url.js";

/**
 * 获取公告  /cmsInform/page?current=1&size=20
 */
export default {
    getCmsInform(data) {
        return request({
            url: url.baseUrl + "/cmsInform/page?pageSize=10000&pageNum=1",
            // params: data,
            method: "get"
        });
    },
    /**
     * 获取公告详情  /cmsInform/1
     */
    cmsInformDetailed(data) {
        return request({
            url: url.baseUrl + "/cmsInform/" + data.id,
            method: "get"
        });
    },
    /**
     * 个人认证、企业认证 /cmsAuthentication/save
     */
    cmsAuthenticationSave(data) {
        return request({
            url: url.baseUrl + "/cmsAuthentication/save",
            data: data,
            method: "put"
        });
    },
    /**
     * 个人认证、企业认证 编辑
     */
    cmsAuthenticationUpdate(data) {
        return request({
            url: url.baseUrl + "/cmsAuthentication/update",
            data: data,
            method: "post"
        });
    },
    /**
     * 获取收支列表 /incomeLog/page
     */
    incomeLogPage(data) {
        return request({
            url: url.baseUrl + "/incomeLog/page",
            params: data,
            method: "get"
        });
    },
    /**
     * 获取体现记录
     * @param } page 
     * @param {*} data 
     * @returns  
     */
    withdrawPage(page, data) {
        return request({
            url: url.baseUrl + "/withdraw/page?pageSize=" + page.pageSize + "&pageNum=" + page.pageNum,
            data: data,
            method: "post"
        });
    },
    /**
     * 
     * 搜索动态列表
     * @returns  
     */
    dynamicPage(page, data) {
        return request({
            url: url.baseUrl + "/dynamic/page?pageSize=" + page.pageSize + "&pageNum=" + page.pageNum,
            data: data,
            method: "post"
        });
    },
    /**
     * 获取可开票订单 
     */
    rechargeRecordLis(page, data) {
        return request({
            url: url.baseUrl + "/order/rechargeRecordList?pageSize=" + page.pageSize + "&pageNum=" + page.pageNum,
            data: data,
            method: "post"
        });
    },
    /**
     * 获取比例 set/list
     */
    setListBl() {
        return request({
            url: url.baseUrl + "/set/list",
            method: "get"
        });
    },

}